import {request} from "../../request";

export function getOrderallocationById(id){
    return request({
        url:`/lswms/orderallocation/${id}`,
        method:'get'
    })
}


export function getOrderallocationPage(data){
    return request({
        url:'/lswms/orderallocation/page',
        method:'put',
        data:data
    })
}

export function putOrderallocation(data){
    return request({
        url:'/lswms/orderallocation',
        method:'put',
        data:data
    })
}
export function postOrderallocation(data){
    return request({
        url:'/lswms/orderallocation',
        method:'post',
        data:data
    })
}

export function deleteOrderallocation(data){
    return request({
        url:`/lswms/orderallocation`,
        method:'delete',
        data:data
    })
}
export function exportOrderallocation(data){
    return request({
        url:`/lswms/orderallocation/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
